﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <section name="hibernate-configuration"
                     type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
    </configSections>
    <hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
        <session-factory>
            <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
            <property name="connection.connection_string">
              Data Source=|DataDirectory|\portal.db;Version=3
            </property>
            <property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
            <property name="query.substitutions">true=1;false=0</property>
            <mapping assembly="Portal.Nhibernate"/>
        </session-factory>
        <!--<session-factory>

      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="dialect">NHibernate.JetDriver.JetDialect, NHibernate.JetDriver</property>
      <property name="connection.driver_class">NHibernate.JetDriver.JetDriver, NHibernate.JetDriver</property>
      <property name="connection.connection_string">
        Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\portal.mdb
      </property>
      <property name="show_sql">true</property>
      <property name="command_timeout">10</property>
      <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
      <mapping assembly="Portal.Nhibernate"/>
    </session-factory>-->
        <!--<session-factory>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">
        -->
        <!--server=.;database=user;uid=sa;pwd=App1234;-->
        <!--
        Server=127.0.0.1;initial catalog=Porta_1;Integrated Security=SSPI;User ID=sa;Password=lk1234;
      </property>
      <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
      <property name="show_sql">true</property>
      <property name="command_timeout">10</property>
      <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
      <mapping assembly="Portal.Nhibernate"/>
    </session-factory>-->
        <!--<session-factory>
      <property name="dialect">NHibernate.Dialect.SybaseDialect</property>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="connection.driver_class">NHibernate.Driver.OleDbDriver</property>
      <property name="connection.connection_string">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\portal.mdb</property>
      <property name="connection.isolation">ReadCommitted</property>
      -->
        <!-- HBM Mapping Files -->
        <!--
      <mapping assembly="Portal.Nhibernate" />
    </session-factory>-->



    </hibernate-configuration>
</configuration>